<template>
  <div class="board-container">
    <div v-if="showWhich" class="back-btn" @click="backHome"><img src="@/assets/images/home.png">返回平台</div>
    <img v-else src="@/assets/images/fullscreen.png" alt="" class="fullscreen-img" @click="toDataBoard">
    <div class="time-stamp">{{ nowTime }}</div>
    <div class="board-weather"><Weather/></div>
    <div class="board-title"><span>高效空调能效可视化平台</span></div>
    <div class="board-content flex-between">
      <!--左边内容-->
      <div class="content-left flex-column-between">
        <div class="content-overview">
          <!--项目概况-->
          <div class="box-select">
            <el-select @change="selectProjectChanged" v-model="projectsItem" value-key="projectId" placeholder="请选择项目名称" :popper-append-to-body="false">
              <el-option
                v-for="item in optionsProject"
                :key="item.projectId"
                :label="item.projectName"
                :value="item"
              ></el-option>
            </el-select>
          </div>
          <div class="box-content-img flex-between">
            <img :src="projectsItem.imageUrl" :alt="projectsItem.projectName" style="width:99%"/>
          </div>
          <div class="box-title">项目概况</div>
          <div class="box-content-text flex-between">
            <p style="color: #fff;font-weight: bold;margin-left:15px;">
              {{ projectsItem.overview }}
            </p>
          </div>
        </div>
        <div class="content-status">
          <div class="box-select" style="padding-top:4px;">近14天能效信息</div>
          <div class="box-content-eer flex-between">
            <div class="overview-object flex-column-center">
              <table>
                <tr>
                  <td>
                    <div class="object-image"><img src="@/assets/screenData_img/Kwh.png" alt="耗电量"/></div>
                  </td>
                  <td>
                    <div class="object-count">{{totalKwh}}</div>
                    <div class="object-name">总用电量(kWh)</div>
                  </td>
                </tr>
              </table>
            </div>
            <div class="overview-meter flex-column-center">
              <table>
                <tr>
                  <td>
                    <div class="object-image"><img src="@/assets/screenData_img/ColdKwh.png" alt="制冷量"/></div>
                  </td>
                  <td>
                    <div class="object-count">{{ totalCold }}</div>
                    <div class="object-name">总制冷量(kWh)</div>
                  </td>
                </tr>
              </table>
            </div>
            <div class="overview-alarm flex-column-center">
              <table>
                <tr>
                  <td>
                    <div class="object-image"><img src="@/assets/screenData_img/COP.png" alt="COP"/></div>
                  </td>
                  <td>
                    <div class="object-count">{{ totalCOP }}</div>
                    <div class="object-name">COP</div>
                  </td>
                </tr>
              </table>
            </div>
          </div>
          <div class="box-linebarChart flex-between">
             <LineBarChart height="100%"
                           :xData="xData"
                           :kwhData="kwhData"
                           :coldData="coldData"
                           :copData="copData"
             />
          </div>
        </div>
      </div>
      <!--中间内容-->
      <div class="content-middle flex-column-between">
        <!--地图信息-->
        <div class="content-overview">
<!--           <div class="content-mapcontent-map" id="boardMap"></div>-->
          <div class="box-content-dit flex-between">
            <img src="../../assets/screenData_img/map.png" alt="地图" style="width:65%;margin: 0 auto;"/>
          </div>
        </div>
        <div class="content-status">
          <div class="box-select" style="padding-top:1px;">故障列表</div>
          <div class="box-content flex-between">
             <alarmItemInfo />
          </div>
        </div>
      </div>
      <!--右边内容-->
      <div class="content-right flex-column-between">
        <div class="content-statistics">
          <div class="box-content flex-between" style="padding-top:50px;">
            <div class="overview-object flex-column-center">
              <img src="../../assets/screenData_img/totals.gif" alt="" />
              <div class="object-count text-numSys">{{ ProjectTotal }}</div>
              <div class="object-name text-numSys" style="bottom: 78px;">项目总数</div>
            </div>
            <div class="overview-meter flex-column-center">
              <img src="../../assets/screenData_img/totals.gif"  alt=""  />
              <div class="object-count text-numSys">{{ RunTotal }}</div>
              <div class="object-name text-numSys" style="bottom: 78px;">运行总数</div>
            </div>
            <div class="overview-alarm flex-column-center">
              <img src="../../assets/screenData_img/totals.gif" alt="" />
              <div class="object-count text-numSys">{{ ConstructionTotal }}</div>
              <div class="object-name text-numSys" style="bottom: 78px;">施工总数</div>
            </div>
          </div>
        </div>
        <div class="content-trend">
          <div class="box-select" style="line-height:41px;padding-left:58px;">项目类型占比</div>
          <div class="box-proportion">
            <PieChart height="100%" :pieData="pieData"/>
          </div>
        </div>
        <div class="content-carbon">
          <div style="line-height:18px;padding-left:43px;">能效排行榜</div>
          <div class="box-Ranking">
            <el-tabs v-model="activeName"  @tab-click="handleClick" class="trend-tabs" >
              <el-tab-pane
                v-for="tab in pieData"
                :key="tab.key"
                :label="tab.name"
                :name="tab.name"
              >
                <RankingList v-if="activeName ===tab.name" :projectType="tab.key" />
              </el-tab-pane>
            </el-tabs>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import CirclePieChartVue from "@/views/dataBoard/CirclePieChart.vue";
import alarmInfo from "@/views/dataBoard/alarmInfo";
import LineChart from "@/views/dataBoard/LineChart.vue";
import barChart from "@/views/dataBoard/BarChart";
import TrendLineChart from "@/views/dataBoard/TrendLineChart";
import { Lightning, Dashboard, Cycle } from "@icon-park/vue";
import moment from "moment";
import { getAllStatus } from '@/api/system/equipmentInfo'
import { listHistory } from '@/api/system/alarmHistory'
import { topologyTreeSelect } from '@/api/system/itemTopology'
import { getChainData, getDailyP, getDayTrend, getConsumptionStatistics } from '@/api/system/energy'

import PieChart from "@/views/screenData/component/pieChart.vue"
import RankingList from "@/views/screenData/component/RankingList.vue"
import alarmItemInfo from "@/views/screenData/component/alarmItemList.vue"
import LineBarChart from "@/views/screenData/component/lineBarChart.vue"
import Weather from "@/views/screenData/component/Weather.vue"
import {getAllProjectType, listProjectInfo} from '@/api/system/projectInfo'
import {listEnergyProject} from "@/api/system/energyProject";
import {parseTime} from "@/utils/ruoyi";

export default {
  name: "dataBoard",
  components: {
    CirclePieChartVue,
    alarmInfo,
    LineChart,
    Lightning,
    Cycle,
    Dashboard,
    barChart,
    TrendLineChart,

    alarmItemInfo,//项目故障列表
    PieChart,//项目占比情况
    RankingList,//排行榜
    LineBarChart,//14天能效数据
    Weather,//天气情况
  },
  data() {
    return {
      map: null,
      activeName: "工厂",//默认显示-选项卡-能效排行榜
      nowTime: "",//当前时间
      timer: null, //定时任务
      showWhich: false, //全屏按钮切换

      //初始化为空对象--项目信息
      projectsItem: {},
      optionsProject:[],
      ProjectTotal:0,//总条数
      RunTotal:0,//运行中-总条数
      ConstructionTotal:0,//施工中-总条数
      pieData: [],//项目占比类型

      totalKwh:0,//总耗电量
      totalCold:0,//总制冷量
      totalCOP:0,//总COP
      xData:[],
      kwhData:[],
      coldData:[],
      copData:[],

      deviceTotal: 0,
      alarmTotal: 0,//历史报警总条数
      energyType: "0",//能效类型
      areaId: 1,

      electricityData:[],
      waterData:[],
      energyData:[],
      carbonData:[],

      electricityTotal:0,
      powerTotal:0,
      carbonTotal: 0,
      dailyP:{},

    };
  },
  methods: {
    selectProjectChanged(val){
      const selectedItem = this.optionsProject.find(item => item.projectId === val.projectId);
      //console.log('选中项：', selectedItem.projectId);
      this.get14dayEnergy(selectedItem.projectId)
    },
    //查询项目信息列表
    getProjectList(){
      let data = { status:'0'};
      listProjectInfo(data).then(response => {
        //console.log(response.rows);
        this.optionsProject=response.rows;
        if (response.rows.length>0){
          this.projectsItem=response.rows[0];
        }
      });
    },
    //查询项目分组状况
    getProjectData(){
      getAllProjectType({DictType: "sys_project_type"}).then(res => {
        //console.log(res);
        this.pieData = res.data.map(item => ({
          value: item.count,
          name: item.typeName,
          key:item.typeId,
        }));
      });
      getAllProjectType({DictType: "sys_project_status"}).then(res => {
        //console.log(res);
        if (res.data.length>0){
          res.data.forEach(item=>{
            switch(item.typeName){
              case "运行中":
                this.RunTotal=item.count;
                break;
              case "施工中":
                this.ConstructionTotal=item.count;
                break;
              default:
                break;
            }
            this.ProjectTotal = item.count + this.ProjectTotal;
          })
        }
      });
    },
    //近14天能效信息
    get14dayEnergy(event){
      this.xData = [];
      this.kwhData = [];
      this.coldData = [];
      this.copData = [];
      this.totalKwh=0;
      this.totalCold=0;
      this.totalCOP=0;
      const end = new Date()
      const start = new Date()
      start.setTime(start.getTime() - 3600 * 1000 * 24 * 14)
      let data = {
        pageNum: 1,
        pageSize: 14,
        projectId: event,
        params: {
          beginTime: parseTime(start,'{y}-{m}-{d}'),
          endTime: parseTime(end,'{y}-{m}-{d}'),
        }
      };
      //console.log(data);
      listEnergyProject(data).then(response => {
        //console.log(response);
        if (response.rows.length>0){
          response.rows.forEach((item,index)=>{
            this.xData.push(parseTime(item.createTime,'{d}d'));
            this.kwhData.push(parseFloat(item.totalKwh).toFixed(1));
            this.coldData.push(parseFloat(item.totalCold).toFixed(1));
            this.copData.push(parseFloat(item.totalCop).toFixed(1));
            this.totalKwh=(parseFloat(this.totalKwh)+parseFloat(item.totalKwh)).toFixed(1);
            this.totalCold=(parseFloat(this.totalCold)+parseFloat(item.totalCold)).toFixed(1);
            //console.log(index+'='+this.totalKwh);
          })
          this.totalCOP= this.totalKwh> 0 ? parseFloat(this.totalCold / this.totalKwh).toFixed(1): 0;
        }
      });
    },

    getEquipmentData() {
      getAllStatus().then(res => {
        this.pieData = [
          { value: res.data[0].count, name: "正常", itemStyle: {color: '#6be6c3'} },
          { value: res.data[1].count, name: "报警", itemStyle: {color: '#e0c464'} },
          { value: res.data[2].count, name: "离线", itemStyle: {color: '#297ef8'} },
        ]
        res.data.forEach(item=>{
          this.deviceTotal = item.count + this.deviceTotal;
        })
      })
    },
    /** 查询历史报警列表 */
    getAlarmList() {
      listHistory().then(response => {
        this.alarmTotal = response.total;
      });
    },
    //获取区域拓扑
    getAreaList() {
      topologyTreeSelect().then((res) => {
        if(res.data.length>0){
          this.areaId = res.data[0].id
        }
      });
    },
    //根据能源类型查询
    getEnergyType(){
      let date = moment().format("yyyy-MM-DD HH:mm:ss");
      this.xData = [];
      this.electricityData = [];
      this.waterData = [];
      let data = {
        energyType:this.energyType,
        areaId:this.areaId,
        nowTime: date,
      };
      getDayTrend(data).then((res) => {
        if (res.data.length <= 0) {
          this.xData = [0,1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23];
          return;
        }
        res.data.forEach((item, index) => {
          this.xData.push(index);
        });
        if(this.energyType === "0"){
          this.electricityData = res.data;
        }else if(this.energyType === "1"){
          this.waterData = res.data;
        }
      });
    },
    // 获取总能耗
    getConsumption() {
      getConsumptionStatistics({areaId: this.areaId}).then(res => {
        this.electricityTotal = res.data.electricity
        this.powerTotal = res.data.kgce
        this.carbonTotal = res.data.kg
      })
    },
    //综合能耗
    getEnergy(){
      let date = moment().format("yyyy-MM-DD HH:mm:ss");
      this.xData = [];
      this.energyData = [];
      this.carbonData = [];
      this.electricityData = [];
      this.waterData = [];
      let data = {
        energyType:'0',
        areaId:this.areaId,
        nowTime: date,
      };
      getDayTrend(data).then((res) => {
        if (res.data.length <= 0) {
          this.xData = [0,1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23];
          return;
        }
        res.data.forEach((item, index) => {
          this.xData.push(index);
        });
        this.electricityData = res.data
      }).then(() =>{
        let query = {
          energyType:'1',
          areaId:this.areaId,
          nowTime: date,
        };
        getDayTrend(query).then((request) => {
          this.waterData = request.data
        }).then(()=>{
          this.xData.forEach((item,index)=>{
            this.energyData.push((parseFloat(this.electricityData[index])/8.167 + parseFloat(this.waterData[index])*0.4857).toFixed(2));
            this.carbonData.push((parseFloat(this.electricityData[index])*0.785 + parseFloat(this.waterData[index])*0.91).toFixed(2));
          })
        });
      });
    },
    //获取当日-昨日电功率曲线
    getDailyPData() {
      let param= {
        areaId: this.areaId,
        energyType: '0'
      }
      getDailyP(param).then((res) => {
        let result = {
          todayData: res.data.todayData,
          yesterdayData: res.data.yesterdayData,
        };
        this.dailyP = result;
      });
    },
    //地图-可视化组件
    initMap() {
      this.map = new BMapGL.Map("boardMap");
      var myIcon = new BMapGL.Icon("https://szcloudpulse.com:9000/cp-portal/2023/04/27/d85f358bb44a4cf69e843acecf7b0c2c.png",
        new BMapGL.Size(23, 25),
        {
          // 指定定位位置。
          // 当标注显示在地图上时，其所指向的地理位置距离图标左上
          // 角各偏移10像素和25像素。您可以看到在本例中该位置即是
          // 图标中央下端的尖角位置。
          // anchor: new BMapGL.Size(15, 25),
          // 设置图片偏移。
          // 当您需要从一幅较大的图片中截取某部分作为标注图标时，您
          // 需要指定大图的偏移位置，此做法与css sprites技术类似。
          // imageOffset: new BMapGL.Size(0, 0 - 25)   // 设置图片偏移
        }
      );

      // 设置中心点坐标和放大倍数
      // 以 经纬度 定位
      var point = new BMapGL.Point(120.654617, 31.268181);
      var point2 = new BMapGL.Point(120.679607, 31.529649);
      this.map.centerAndZoom(point, 10);

      //设置地图样式
      this.map.setMapStyleV2({ styleId: "d9955f6e8bd01669bfd15a998f109283" });
      // 以 地名 定位
      // this.map.centerAndZoom('苏州市', 12);

      this.map.enableScrollWheelZoom(); //启用滚轮放大缩小，默认禁用
      this.map.enableContinuousZoom(); //启用地图惯性拖拽，默认禁用

      // 标注
      var marker = new BMapGL.Marker(point, { icon: myIcon });
      this.map.addOverlay(marker);
      // 信息窗口
      var opts = {
        width: 250,
        height: 100,
        title: "武珞科技园",
      };
      // var infoWindow = new BMapGL.InfoWindow("云脉软件", opts);
      // marker.addEventListener("mouseover", function () {
      //   this.openInfoWindow(infoWindow);
      // });
      // // 鼠标移开标注点要发生的事
      // marker.addEventListener("mouseout", function () {
      //   this.closeInfoWindow(infoWindow);
      // });

      var point2 = new BMapGL.Point(120.679607, 31.529649);
      var marker2 = new BMapGL.Marker(point2, { icon: myIcon });
      this.map.addOverlay(marker2);
      var opts2 = {
        width: 250,
        height: 100,
        title: "优胜美地生产基地",
      };
      // var infoWindow2 = new BMapGL.InfoWindow("优胜美地", opts2);
      // marker2.addEventListener("mouseover", function () {
      //   this.openInfoWindow(infoWindow2);
      // });
      // // 鼠标移开标注点要发生的事
      // marker2.addEventListener("mouseout", function () {
      //   this.closeInfoWindow(infoWindow2);
      // });
    },
    //能源趋势
    handleClick(tab, event) {
      if(tab.index === "0"){
        this.getEnergy()
      } else if(tab.index === "1"){
        this.energyType = "0"
        this.getEnergyType()
      }else if(tab.index === "2"){
        this.energyType = "1"
        this.getEnergyType()
      }
    },

    //获取当前时间
    getNowTime() {
      this.nowTime = moment().format("yyyy-MM-DD HH:mm:ss");
    },
    //全屏显示
    toDataBoard() {
      this.$router.push('/system/data-screen')
    },
    //返回
    backHome() {
      this.$router.push('/data-screen')
    }
  },
  //在Vue实例挂载到DOM之后执行
  mounted() {
    this.$nextTick(() => {
      // this.initMap();
    })
  },
  //在Vue实例被创建之后立即执行
  created() {
    let { getNowTime } = this;
    getNowTime();
    if (this.timer) {
      clearInterval(this.timer);
    }
    this.timer = setInterval(getNowTime, 1000);
    this.showWhich = this.$router.currentRoute.path !== '/data-screen'
    // this.getEquipmentData()
    // this.getAlarmList()
    // this.getAreaList()

    this.getProjectData()

    this.$nextTick(() => {
      // this.getConsumption()
      // this.getEnergy()
      // this.getDailyPData();

      this.getProjectList();
    })
  },
  beforeDestroy() {
    clearInterval(this.timer);
    this.map = null
  },
};
</script>

<style scoped>
.board-container {
  width: 100%;
  height: 100vh;
  background-image: url("../../assets/screenData_img/screen_bg.png");
  /*  background-image: url("../../assets/screenData_img/背景.gif");  */
  background-size: 100% 100%;
  color: #fff;
  position: relative;
}
.back-btn {
  position: absolute;
  left: 2.5%;
  top: 8.5%;
  height: 3%;
  color: #00d0ff;
  font-size: 17px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.back-btn img {
  height: 100%;
  margin-right: 6px;
}
.fullscreen-img {
  position: absolute;
  left: 2.5%;
  top: 8.5%;
  height: 3%;
  cursor: pointer;
}
.time-stamp {
  position: absolute;
  left: 0.9%;
  top: 3%;
  color: #00d1ff;
  font-size: 20px;
}
.board-title {
  background-image: linear-gradient(to top, #2571e9, #00e7ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 40px;
  font-weight: bold;
  letter-spacing: 8px;
  height: 9%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.board-weather{
  position: absolute;
  right: 0;
  top: 2.5%;
}
.board-content {
  height: 86%;
  width: 99%;
  margin: 35px auto 0;
}
.content-left {
  width: calc(30% - 12px);
  margin-right: 12px;
}
.content-overview,
.content-status,
.content-alarm,
/*.content-statistics,*/
.content-trend,
.content-carbon,
.content-chart {
  /* background-image: url("../../assets/images/box-bg1.png"); */
  background-size: 100% 100%;
}
.content-overview {
  height: 52%;
  margin-bottom: 12px;
  padding: 12px 16px;
}
.box-title {
  height: 20px;
  margin-left: 12px;
  display: flex;
  align-items: center;
  color: #01d1ff;
}
.box-title::before {
  content: " ";
  width: 6px;
  height: 100%;
  border-radius: 10px;
  display: inline-block;
  margin-right: 6px;
  background: linear-gradient(to bottom, #00d1ff, #2869e8);
}
.box-content {
  height: calc(100% - 20px);
  /* padding: 20px 10px; */
}
.box-content-img{
  height: calc(48% - 20px);
  padding-top: 10px;
  padding-bottom: 20px;
}
.box-content-text{
  height: calc(48% - 20px);
  padding-top: 10px;
  padding-bottom: 20px;
}
.box-content-eer{
  height: calc(40% - 20px);
}
.box-linebarChart{
  width: auto;
  height: calc(60%);
}
.box-select{
  padding-left: 50px;
}
.box-content-dit{
  height: calc(95% - 20px);
}
.box-proportion{
  height: calc(85%);
  padding-top:15px;
 }
.box-Ranking{
  height: calc(95%);
  padding-top:10px;
}
 .overview-object,
 .overview-meter,
 .overview-alarm {
   width: calc(33% - 10px);
   align-items: center;
 }
 .object-count {
   color: #1be5e7;
   font-size: 22px;
   font-weight: bold;
   margin-bottom: 6px;
 }
 .object-name {
   font-size: 12px;
 }
 .object-image{
   float: left;
 }
 .content-status {
   height: calc(45% - 12px);
   margin-bottom: 32px;
   padding: 20px 16px;
 }
 .content-alarm {
   height: calc(40% - 12px);
   padding: 16px 16px;
 }
 .content-middle {
   width: 40%;
   margin-right: 12px;
 }
 .content-map {
   height: 45%;
 }
 .content-chart {
   height: calc(45% - 12px);
   padding: 18px 30px;
 }
 .content-right {
   width: calc(30% - 12px);
 }
 .content-statistics {
   /* height: 20%; */
  /*  padding: 12px 16px; */
  height: 12.5%;
}
.content-trend {
 height: calc(34% - 12px);
 /* padding: 18px 16px; */
}
.content-carbon {
 height: calc(51% - 12px);
 margin-bottom: 32px;
 padding: 20px 16px;
}
.statistics-item {
 width: calc(33% - 8px);
 align-items: center;
 font-size: 12px;
}
.item-count {
 font-size: 28px;
 font-weight: bold;
 color: #1be5e7;
 margin: 6px 0 6px;
}
.trend-tabs {
 height: 100%;
}
.text-numSys{
  position: relative;
  bottom: 90px;
}

</style>

<style>
.trend-tabs,
.trend-tabs .el-tabs__content .el-tab-pane {
  height: 100%;
}
.trend-tabs .el-tabs__item {
  color: #fff;
}
.trend-tabs .el-tabs__item:hover,
.trend-tabs .el-tabs__item.is-active {
  color: #00d0fe;
}
.trend-tabs .el-tabs__active-bar {
  background-color: #00d0fe;
}
.trend-tabs .el-tabs__nav-wrap::after {
  background-color: #1d3666;
}
.trend-tabs .el-tabs__content {
  height: calc(100% - 55px);
}

/* 地图信息窗口样式修改 */
#boardMap .BMap_bubble_pop {
  background-color: rgba(28, 37, 80, 0.8) !important;
  border: 1px solid #186dbf !important;
}
#boardMap .BMap_bubble_pop img {
  display: none;
  margin: 0 auto;
}
#boardMap .BMap_bubble_pop .BMap_bubble_top .BMap_bubble_title,
#boardMap .BMap_bubble_pop .BMap_bubble_center .BMap_bubble_content {
  color: #fff !important;
}
</style>

<style lang="scss" scoped>
//修改的是el-input的样式
//一种方法是设置最里层el-input__inner的背景色 外层的两级父元素设置为透明色
//另一种方法是从el-select到el-input__inenr的背景色都设置为需要的颜色

::v-deep .el-select,
::v-deep .el-input,
::v-deep .el-input__inner{
  border-radius: 8px;
  color: #3D9BF1;
  border-color:green;
  text-align: center;
  height: 25px;
}

::v-deep .el-select .el-input__icon{
  line-height: 25px;
}

//el-input聚焦的时候 外层的border会有一个样式
::v-deep .el-select .el-input.is-focus .el-input__inner{
  //border:0px;
  border: 1px solid green;
}

//修改的是el-input上下的小图标的颜色
::v-deep .el-select .el-input .el-select__caret{
  color: green;
}

//修改总体选项的样式 最外层
::v-deep .el-select-dropdown{
  //rgba(87,133,87,0.8)
  background: rgba(87, 133, 87, 0.78);
  //margin: 0px;
  border:0px;
  //border-radius: 0px;
  //left: 0px !important;
}

//修改单个的选项的样式
::v-deep .el-select-dropdown__item{
  background-color: transparent;
  color:#fff;
}

//item选项的hover样式
::v-deep .el-select-dropdown__item.hover,
::v-deep .el-select-dropdown__item:hover{
  color: rgb(21, 94, 38);
  background: rgba(87, 133, 87, 0.3);
}

//修改的是下拉框选项内容上方的尖角
::v-deep .el-popper .popper__arrow, .el-popper .popper__arrow::after{
  display: none;
}

</style>


